package com.feicheng.persistence.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.Vip;
import com.feicheng.persistence.mapper.VipMapper;
import com.feicheng.persistence.model.VipMain;
import com.feicheng.persistence.service.IVipService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Service
public class VipServiceImpl extends ServiceImpl<VipMapper, Vip> implements IVipService {

    @Override
    public List<VipMain> getVips(QueryWrapper<VipMain> queryWrapper) {

        return  this.getBaseMapper().getVips(queryWrapper);

    }

    @Override
    public Page<VipMain> getVipsByPage(Page<VipMain> page, QueryWrapper<VipMain> queryWrapper) {

        return  this.getBaseMapper().getVipsByPage(page,queryWrapper);

    }

    @Override
    public VipMain getVipById(QueryWrapper<VipMain> queryWrapper) {
        return this.getBaseMapper().getVipById(queryWrapper);
    }

    @Override
    public List<VipMain> getVipByClientId(QueryWrapper<VipMain> vipMainQueryWrapper) {
        return this.getBaseMapper().getVipByClientId(vipMainQueryWrapper);
    }

    @Override
    public Integer getAmount(QueryWrapper<VipMain> cardRecordQueryWrapper) {
        return this.getBaseMapper().getAmount(cardRecordQueryWrapper);
    }
}
